From aaa7e11a7cac991f6249d7659ba22e23cfbf1e3e Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Wed, 12 Dec 2007 09:54:21 +0000 Subject: [PATCH] Fix domctl GCC dependency Compilers other than GCC don't allow zero-sized structs. Signed-off-by: John Levon --- xen/include/public/domctl.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/xen/include/public/domctl.h b/xen/include/public/domctl.h index 5d9a44c3ee..dbd25ce293 100644 --- a/xen/include/public/domctl.h +++ b/xen/include/public/domctl.h @@ -544,8 +544,11 @@ DEFINE_XEN_GUEST_HANDLE(xen_domctl_ext_vcpucontext_t); */ #define XEN_DOMCTL_set_opt_feature 44 struct xen_domctl_set_opt_feature { -#ifdef __ia64__ +#if defined(__ia64__) struct xen_ia64_opt_feature optf; +#else + /* Make struct non-empty: do not depend on this field name! */ + uint64_t dummy; #endif }; typedef struct xen_domctl_set_opt_feature xen_domctl_set_opt_feature_t; -- 2.30.2